<?php
/**
 * 个人自定义相关配置信息
 * User: cwy
 * Date: 2021/10/28
 */
return [
    //*******************************************************************返回描述
    // 中文
    // 英文
    // 接口公共输出相关描述
    "describe"=>[
        "success"           =>  "ok",
        "error"             =>  "系统內部错误!",
        "server_failure"    =>  "服务器故障!",
        "interface_error"   =>  "请求方式或接口错误,请检查!",
        "format_error"      =>  "数据格式错误!",
        "request_error"     =>  "请求错误!",
        "server_error"      =>  "服务器错误!",
        "null_data"         =>  "未找到相关数据!",
        "add_error"         =>  "添加失败!",
        "up_error"          =>  "更新失败!",
        "modif_error"       =>  "获取失败!",
        "dele_error"        =>  "删除失败!",
        "exist"             =>  "数据已存在!",
        "id_error"          =>  "ID不合法!",
        "id_delete"         =>  "ID不合法或数据已删除!",
        "parameter_error"   =>  "参数错误!",
        "not_login"         =>  "登录失效!",
        "login_failed"      =>  "登录失败!",
        "login_successful"  =>  "登陆成功!",
        "exit_failed"       =>  "退出登录!",
    ],

    //******************************************************************其他描述
    "other"=>[
        "alarmUpdate"=>'已消警!'
    ],

    //******************************************************************头部信息描述
    "head"=>[
        "token"=>'x-token', // token标识
    ],

    //******************************************************************状态码描述
    "code"=>[
        "success"           =>  200,    //成功
        "error"             =>  -99,    //错误
        "request_error"     =>  404,    //请求错误
        "server_error"      =>  500,    //服务器错误
        "resources_error"   =>  400,    //资源不存在
        "not_login"         =>  -2,     //登录失效
        "user_is_register"  =>  -3,     //用户已存在
//        "action_not_found" =>-4,// 方法不存在
//        "controller_not_found" =>-5, // 控制器不存在
    ],

    //******************************************************************公共数据返回
    "data"=>[
        "null"  =>  [],
    ],

    //******************************************************************mysql相关配置
    "mysql"=>[
        "table_pedding" =>0,	//待审核
        "table_normal" => 1,		//正常
        "table_delete" =>99,	// 删除
    ],

    //******************************************************************其他配置信息
    // 其他映射
    "hot_words"=>[
        "file_path" =>'/opt/huisheng/wwwroot/api.raisound.com/html/capability_platform/public/',	//待更新热词文件路径
    ],

    "token"=>[
        'api_key'=>'HPNoCSWP',
        'api_secret'=>'ssYKniBsXXjsDF4potDZLy8gfjkVopfb',
        'url'=>'http://192.168.10.175:88/v3'
    ],
];
